package com.szy.system.error.exception;

/**
 * @author : zhenyun.su
 * @comment : 定义邮件相关异常
 * @since : 2020-8-28
 */

@Deprecated
public class MailException extends BaseException {
    public MailException() {
    }

    public MailException(String message) {
        super(message);
    }

    public MailException(Integer code, String message) {
        super(code, message, (Object)null);
    }

    public MailException(Integer code, String message, Object data) {
        super(code, message, data);
    }

    public static void throwException(Integer code, String message) throws MailException {
        throw new MailException(code, message);
    }

    public static void throwException(Integer code, String message, Object data) throws MailException {
        throw new MailException(code, message, data);
    }
}